$(document).ready(function () {
    $("#submit").click(function () {
        var submitButton = Ladda.create(document.querySelector('#submit'));
        submitButton.start();
        var handler = $.post("login/verfiy", $("#loginForm").serialize(), function (data) {
            submitButton.stop();
            if (data) {
                window.location = "dashbord";
            } else {
                $("#status").text("Login Failed. Invalid Username or Password.");
            }
        })
            .error(function () {
                $("#status").text("Oops..! Something went wrong. Please contact support team.");
            });
    })
});